package com.xique.park.controller.client.web.controller;

import com.xique.common.core.domain.R;
import com.xique.common.core.web.controller.BaseController;
import com.xique.park.controller.client.web.service.biz.service.IClientLoginInfoBizService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shd
 * @create 2021/7/21 9:33
 */
@RestController
@RequestMapping("/loginOut")
public class ClientLoginOutController extends BaseController {

    @Autowired
    private IClientLoginInfoBizService clientLoginInfoBizService;

    /**
     * 删除岗亭登录用户信息
     */
    @PostMapping("/deleteUserInfo")
    @ApiOperation("删除岗亭登录用户信息")
    public R<Boolean> deleteClientUserInfo(@RequestParam("clientId") Long clientId)
    {
        return clientLoginInfoBizService.deleteClientUserInfo(clientId);
    }
}
